package cn.tedu._06article.mapper;

import cn.tedu._06article.pojo.dto.UserArticleParam;
import cn.tedu._06article.pojo.dto.UserLoginParam;
import cn.tedu._06article.pojo.vo.ArticleVO;
import cn.tedu._06article.pojo.vo.UserVO;
import org.apache.ibatis.annotations.Param;

public interface UserMapper {
    UserVO selectByUsernameAndPassword(UserLoginParam userLoginParam);

    int addArticle(@Param("us") UserArticleParam userArticleParam,
                   @Param("id")Long id);

    ArticleVO selectByArticle(Long id);
}
